:root {
    --font-color: #374151;
    --primary-color: #3b82f6;
    --border-color: #d1d5db;
    --bg-gray-color: #9ca3af;
}
.popup {
    min-width: 200px;
    color: var(--font-color);
}
.tool-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    cursor: pointer;
}
.tool-name {
    display: flex;
    flex-grow: 1;
    padding: 4px 0;
    font-weight: 500;
}
.tool-name:hover {
    color: var(--primary-color);
}
.tool-name img {
    margin-right: 8px;
}

.tool-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.menu-checkbox:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.menu-config {
    display: flex;
    align-items: center;
    font-weight: 600;
    padding: 8px;
    border-top: 1px solid var(--border-color);
    margin-top: 10px;
}

.tool-checkbox {
    margin-left: 8px;
}

#globalMenuToggle:checked ~ .tool-list .tool-name {
    cursor: default !important;
}
input[type='checkbox'].switch {
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    position: relative;
    width: 32px;
    height: 18px;
    border-radius: 16px;
    border: 1px solid var(--bg-gray-color);
    background-color: var(--bg-gray-color);
}
input[type='checkbox'].switch::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #fff;
    box-shadow: 0 0 2px var(--bg-gray-color);
    transition: left 0.1s linear;
    position: absolute;
    top: 0;
    left: 0;
}
input[type='checkbox'].switch:checked {
    background-color: var(--primary-color);
}
input[type='checkbox'].switch:checked::after {
    position: absolute;
    top: 0;
    left: 50%;
}
